﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Book
    {

        public int Id { get; set; }
        public string Name { get; set; }
        public int Price { get; set; }





        public Book (int id,string name,int price)
        {
          Id = id;
       Name = name;
       Price = price;



            Console.WriteLine("书籍编号{0}，书籍名称{1}，书籍价格{2}",id,name,price);

            
         }

        ~Book()
        {
            Console.WriteLine("{0}很好看的书",Name);
        }
    }
   

    
}
